package com.cook.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long userId;

    private String username;

    private String email;

    private String account;

    private String password;

    private String avatarUrl;

    private String bio;

    private String tastePreference;

    private String skillLevel;

    private Integer status;

    //TODO 第二种方式是扩展消息转化器，一个固定代码，以后学习（适于大量数据）
    private LocalDateTime createTime;

    private LocalDateTime updateTime;
}
